package com.yingsheng.bi.hks.mapping;

import com.yingsheng.bi.hks.bo.ServiceInfoBo;
import com.yingsheng.bi.hks.bo.ServiceOrdersBo;
import com.yingsheng.bi.hks.dto.serviceinfo.ServiceInfoAddReq;
import com.yingsheng.bi.hks.dto.serviceinfo.ServiceInfoModReq;
import com.yingsheng.bi.hks.repository.dao.po.ServiceInfo;
import com.yingsheng.bi.hks.repository.dao.po.ServiceOrders;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface ServiceInfoMgmtMappings {

    ServiceInfoMgmtMappings INSTANCE = Mappers.getMapper(ServiceInfoMgmtMappings.class);

    ServiceInfo addReq2po(ServiceInfoAddReq req);

    ServiceInfo addReq2po(ServiceInfoModReq req);

    List<ServiceInfoBo> serviceInfoList2boList(List<ServiceInfo> serviceInfoList);

    List<ServiceOrdersBo> serviceOrderList2boList(List<ServiceOrders> serviceOrdersList);
}
